diff options
| author | Adam Soltys <[email protected]> | 2024-10-10 16:05:58 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-10 16:05:58 -0700 |
| commit | 23791a00741c26b7737ff64e4892a4646c49e437 (patch) | |
| tree | d0e8d17fed2524f8928e3706fcaff7951cfd310f /src/routes/(app)/[username]/(profile)/+layout.server.ts | |
| parent | 80af1989da889b99ed1d9d76df17e04d52e92f98 (diff) | |
| download | coinos-ui-23791a00741c26b7737ff64e4892a4646c49e437.tar.gz coinos-ui-23791a00741c26b7737ff64e4892a4646c49e437.zip | |
follow counts
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+layout.server.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts index bf499fb1..9ad95fa6 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.server.ts +++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts @@ -5,10 +5,8 @@ export async function load({ depends, parent }) { let { subject, user } = await parent(); - let count = get(`/${subject.pubkey}/count`).catch(() => 0); - let follows = get(`/${subject.pubkey}/follows`).catch(() => []); - let followers = get(`/${subject.pubkey}/followers`).catch(() => []); + let { follows, followers } = await get(`/${subject.pubkey}/count`); let followList = get(`/${user.pubkey}/follows?tagsonly=true`).catch(() => []); - return { count, follows, followers, followList }; + return { follows, followers, followList }; } |
